package ve.usb.coord.colision;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import java.util.List;
import ve.usb.cohesion.runtime.Pair;
import org.apache.struts.upload.FormFile;

public class FAsignatura extends org.apache.struts.action.ActionForm {
    
    
    public FAsignatura() {
        super();
    }
    
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        idAsignatura = 0l;
        codigo = "";
        nombre = "";
        departamento = 0l;
        listDepartamento = null;
        horast = 0;
        horasp = 0;
        horasl = 0;
        seleccion = null;
        programa1 = null;
        programa2 = "";

    }

//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//
//        return errors;
//    }

/**
     * Holds value of property idAsignatura.
     */
    private long idAsignatura;

    /**
     * Getter for property idAsignatura.
     * @return Value of property idAsignatura.
     */
    public long getIdAsignatura() {
        return this.idAsignatura;
    }

    /**
     * Setter for property idAsignatura.
     * @param idAsignatura New value of property idAsignatura.
     */
    public void setIdAsignatura(long idAsignatura) {
        this.idAsignatura = idAsignatura;
    }

/**
     * Holds value of property codigo.
     */
    private String codigo;

    /**
     * Getter for property codigo.
     * @return Value of property codigo.
     */
    public String getCodigo() {
        return this.codigo;
    }

    /**
     * Setter for property codigo.
     * @param codigo New value of property codigo.
     */
    public void setCodigo(String codigo) {
        this.codigo = codigo;
    }

/**
     * Holds value of property nombre.
     */
    private String nombre;

    /**
     * Getter for property nombre.
     * @return Value of property nombre.
     */
    public String getNombre() {
        return this.nombre;
    }

    /**
     * Setter for property nombre.
     * @param nombre New value of property nombre.
     */
    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

/**
     * Holds value of property departamento.
     */
    private long departamento;

    /**
     * Getter for property departamento.
     * @return Value of property departamento.
     */
    public long getDepartamento() {
        return this.departamento;
    }

    /**
     * Setter for property departamento.
     * @param departamento New value of property departamento.
     */
    public void setDepartamento(long departamento) {
        this.departamento = departamento;
    }

/**
     * Holds value of property listDepartamento.
     */
    private List<Pair> listDepartamento;

    /**
     * Getter for property listDepartamento.
     * @return Value of property listDepartamento.
     */
    public List<Pair> getListDepartamento() {
        return this.listDepartamento;
    }

    /**
     * Setter for property listDepartamento.
     * @param listDepartamento New value of property listDepartamento.
     */
    public void setListDepartamento(List<Pair> listDepartamento) {
        this.listDepartamento = listDepartamento;
    }

/**
     * Holds value of property horast.
     */
    private byte horast;

    /**
     * Getter for property horast.
     * @return Value of property horast.
     */
    public byte getHorast() {
        return this.horast;
    }

    /**
     * Setter for property horast.
     * @param horast New value of property horast.
     */
    public void setHorast(byte horast) {
        this.horast = horast;
    }

/**
     * Holds value of property horasp.
     */
    private byte horasp;

    /**
     * Getter for property horasp.
     * @return Value of property horasp.
     */
    public byte getHorasp() {
        return this.horasp;
    }

    /**
     * Setter for property horasp.
     * @param horasp New value of property horasp.
     */
    public void setHorasp(byte horasp) {
        this.horasp = horasp;
    }

/**
     * Holds value of property horasl.
     */
    private byte horasl;

    /**
     * Getter for property horasl.
     * @return Value of property horasl.
     */
    public byte getHorasl() {
        return this.horasl;
    }

    /**
     * Setter for property horasl.
     * @param horasl New value of property horasl.
     */
    public void setHorasl(byte horasl) {
        this.horasl = horasl;
    }

/**
     * Holds value of property programa1.
     */
   // private String programa;

    private FormFile programa1;

    
    /**
     * Getter for property programa1.
     * @return Value of property programa1.
     */
    public FormFile getPrograma1() {
        return this.programa1;
    }

    /**
     * Setter for property programa1.
     * @param programa New value of property programa1.
     */
    public void setPrograma1(FormFile programa) {
        this.programa1 = programa;
    }
    
        private String programa2;

    
    /**
     * Getter for property programa2.
     * @return Value of property programa.
     */
    public String getPrograma2() {
        return this.programa2;
    }

    /**
     * Setter for property programa2.
     * @param programa New value of property programa2.
     */
    public void setPrograma2(String programa) {
        this.programa2 = programa;
    }
    
    
    private String seleccion;
    
    public String getSeleccion() {
        return this.seleccion;
    }
    
    public void setSeleccion(String seleccion) {
        this.seleccion = seleccion;
    }




}